package tp2lab;

public class PassiveStrategy implements IStrategy {

    @Override
    public Bet makeBet(Handy hand, int pula, int obecnaStawka, boolean czyAllIn, boolean czyBetted, int zetony) {
        Bet bet = null;
        if(czyAllIn){
            bet = new Bet("fold", 0);
        }
        else{
            if(zetony > obecnaStawka){
                if(czyBetted){
                    bet = new Bet("call", 0);
                }
                else{
                    bet = new Bet("check", 0);
                }
            }
            else{
                bet = new Bet("fold", 0);
            }
        }
        return bet;
    }
}